﻿using RAP.Framework.Libary.Utils;

namespace RAP.Framework.Libary.DomTemplateBuilder.Element
{
  /// <summary>
  /// 可访问参数属性的节点
  /// </summary>
  public class PropertyElement : ValueTyped, IPropertyElement
  {
    protected string _property = string.Empty;
    /// <summary>
    /// 节点对应的属性
    /// </summary>
    public virtual string Property
    {
      get
      {
        if (_property.IsNullOrEmpty())
        {
          _property = this.ToString("Property", string.Empty);
        }
        return _property;
      }
      set
      {
        this["Property"] = _property = value;
      }
    }

  }
}
